package entity.lianxi.demo07;

public class Student {
        /**
         * 属性 - 字段 - Field
         */
        private String name;
        private int age;
        private Double weight;

        /**
         * 构造方法 - Construct
         */
        public Student() {
        }

        public Student(String name, int age, Double weight) {
            this.name = name;
            this.age = age;
            this.weight = weight;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public Double getWeight() {
            return weight;
        }

        public void setWeight(Double weight) {
            this.weight = weight;
        }

        @Override
        public String toString() {
            return "Student{" +
                    "name='" + name + '\'' +
                    ", age=" + age +
                    ", weight=" + weight +
                    '}';
        }
}
